package com.lmabbe.tenant.objects.converter;

import com.lmabbe.common.global.context.TenantBuildContext;
import com.lmabbe.tenant.objects.dto.TenantInstallContextDTO;
import com.lmabbe.tenant.objects.entity.TenantInstallContext;
import org.mapstruct.Mapper;

/**
 * @author lmabbe
 */
@Mapper(componentModel = "spring")
public interface TenantInstallContextConverter {

    /**
     * to 转实体
     *
     * @param to
     * @return
     */
    TenantInstallContext dto2Entity(TenantInstallContextDTO to);


    /**
     * 实体类转换成mq传送对象
     * @return {@link TenantBuildContext}
     * @date 2022/3/24 5:46 PM
     * @author liming
     */
    TenantBuildContext install2Build(TenantInstallContext context);
}
